]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Ensure to resize keys after layer change
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 1 Dec 2017 19:17:17 +0000 (20:17 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 5 Feb 2018 16:46:57 +0000 (17:46 +0100)
The keys possibly need resizing after a (new) layer has been set, there's
however calling places that don't. Instead, fold this._redraw() into
setActiveLayer().

js/ui/keyboard.js

index a430b82e4809c37d8bd8612c2234e3718d3f9e09..67ea7b611a1a524110ed829305dd5cf3417f4726 100644 (file)
@@ -684,12 +684,10 @@ var Keyboard = new Lang.Class({
 
     _onLevelChanged: function (level) {
         this._setActiveLayer(level);
-        this._redraw();
     },
 
     _onGroupChanged: function () {
         this._setActiveLayer(0);
-        this._redraw();
     },
 
     _onKeyboardGroupsChanged: function(keyboard) {
@@ -706,6 +704,7 @@ var Keyboard = new Lang.Class({
         }
 
         this._current_page = layers[activeLevel];
+        this._redraw();
         this._current_page.show();
     },